package com.dao;

import java.util.List;

import com.model.Commodity;

public interface CommodityMapper {
    int deleteByPrimaryKey(Integer cId);

    int insert(Commodity record);

    int insertSelective(Commodity record);

    Commodity selectByPrimaryKey(Integer cId);

    int updateByPrimaryKeySelective(Commodity record);

    int updateByPrimaryKey(Commodity record);
    
    List<Commodity> selectByCommodityName(String cname);
    
    List<Commodity> selectAll();
}